<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <?php include 'inc/head.php'; ?>
</head>

<body>
  <?php include 'inc/header.php'; ?>

  <div class="container">
    <!-- content start -->
    <div class="card">
      <div class="card-header">会员管理</div>
      <form method="post" action="<?php echo M('admin', 'member', 'edit_action', $this->id); ?>">
        <?php echo M_input(array('u_enable')); ?>
        <table class="table table-hover">
          <tbody>
            <tr>
              <th>账户状态</th>
              <td>
                <div class="form-check form-switch">
                  <input class="form-check-input" name="u_enable" type="checkbox" role="switch" value="1"
                    id="<?php echo $row['u_enable'] ? 'flexSwitchCheckChecked' : 'flexSwitchCheckDefault'; ?>"
                    <?php echo $row['u_enable'] ? 'checked' : ''; ?>>
                </div>
              </td>
            </tr>
            <tr>
              <th>姓名</th>
              <td><?php echo $row['u_name']; ?></td>
            </tr>
            <tr>
              <th>余额</th>
              <td><?php echo $row['u_cash']; ?></td>
            </tr>
            <tr>
              <th>积分</th>
              <td><?php echo $row['u_point']; ?></td>
            </tr>
            <tr>
              <th>电子邮件</th>
              <td><?php echo $row['u_email']; ?></td>
            </tr>
            <tr>
              <th>手机号</th>
              <td><?php echo $row['u_mobile']; ?></td>
            </tr>
            <tr>
              <th>注册时间</th>
              <td><?php echo local_date('Y-m-d H:i:s', $row['last_login']); ?></td>
            </tr>
            <tr>
              <td colspan="2">
                <div class="d-grid">
                  <button type="submit" class="btn btn-primary">提交</button>
                </div>
              </td>
            </tr>
          </tbody>
        </table>
      </form>
    </div>
    <!-- content end -->

  </div>

  <?php include 'inc/footer.php'; ?>

</body>

</html>